package com.accp.vehiclecare.action.syhaction;

import com.accp.vehiclecare.biz.syhbiz.OptionBiz;
import com.accp.vehiclecare.pojo.*;
import com.accp.vehiclecare.vo.syhvo.ServiceitxVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("api/option")
public class OptionAction {

    @Autowired
    private OptionBiz biz;

    @GetMapping("/serviceitemtype")
    private List<Serviceitemtype> queryServiceitemtype(){
        return biz.querlx();
    }

    @GetMapping("/shifts")
    private List<Shifts> queryShifts(){
        return biz.querbc();
    }

    @GetMapping("/clearingform")
    private List<Clearingform> queryClearingform(){
        return biz.querjs();
    }

    @GetMapping("/oilmass")
    private List<Oilmass> queryOilmass(){
        return biz.queryyl();
    }

    @GetMapping("/xm")
    private List<ServiceitxVo> queryXm(){
        return biz.queryxm();
    }

    @GetMapping("/jl")
    private List<Mnpricetype> queryjl(){
        return biz.queryjl();
    }

    @GetMapping("/p")
    private Serviceitem q(Integer id){
        return biz.query(id);
    }

    /**
     * 外勤车辆
     * @param aid
     * @return
     */
    @GetMapping("wqcl")
    private List<Arvehicle> queryArvehicle(Integer aid){
        return biz.queryarvehicle(aid);
    }
}
